package com.zyl.pagergallerymoredemo_java.volley;

import android.content.Context;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

public class VolleyUtils {
    private Context context;
    private VolleyUtils INSTANCE;
    private RequestQueue requestQueue;

    private VolleyUtils(Context context) {
        this.context = context;
    }

    public static VolleyUtils getInstance(Context context) {
        return new VolleyUtils(context);
    }

    public RequestQueue getRequestQueue() {
        return Volley.newRequestQueue(context);
    }
}
